package com.vancouver.knows.business.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.vancouver.knows.business.bean.SplashAdInfo;
import com.vancouver.knows.business.bean.VersionInfo;

/**
 * 版本更新列表解析
 * Created by llf
 */
public class SplashAdInfoHandler extends ACheckableJsonParser{
	private SplashAdInfo adInfo = null;
	@Override
	protected void parserContent(JSONObject content) throws Exception {
//		adInfo.setImageUrl(content.getString("image_url"));
//		adInfo.setRedirUrl(content.getString("redir_url"));
//		adInfo.setTimeLength(content.getString("time_length"));

		String posts = content.getString("data");
		adInfo = JSON.parseObject(posts, SplashAdInfo.class);

		adInfo.setErrorCode(content.getString("error_code"));
		
	}
	public SplashAdInfo getSplashAdInfo(){
		return adInfo;
	}
	
}
